package com.learn.base.controller;

import com.learn.base.model.swagger.req.SwaggerTestReq;
import com.learn.base.model.swagger.res.SwaggerTestResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : Yu.Tan
 * @date : 2023/1/11 18:22
 * @desc : **
 */
@RestController
@RequestMapping("/learn/swagger")
@Api(tags = "swagger测试")
@AllArgsConstructor
public class SwaggerController {

    @ApiOperation("Swagger测试方法一")
    @PostMapping("/test")
    public SwaggerTestResp swaggerTest(@RequestBody SwaggerTestReq req){
            return new SwaggerTestResp();
    }

}
